<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div id="content-top">
	<div class="content-top-left">
		<img src="{{ url:site }}/medias/images/content-top-left.png"/>
	</div>
	<div class="content-top-right">
		<h2>
		<?php
		if($pageTopRight){
			echo $pageTopRight->title;
		}else{
			echo lang('stoepje_winner_frontend_content_top_right_header_label');
		}
		?>
		</h2>
		<?php
		if($pageChunksTopRight){
			echo $pageChunksTopRight[0]->body;
		}else{
		?>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text1_label')?>
		</p>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text2_label')?>
		</p>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text3_label')?>
		</p>
		<?php
		}
		?>
		<?php echo form_open(site_url().'voucher/submit', 'class="crud" id="stoepje_voucher_form"'); ?>
		<div id="stoepje-voucher-form-wrapper">
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_salutation_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_radio('salutation', 'man', TRUE, 'id="salutation"')?> <label for="saluatation"><?php echo lang('stoepje_winner_salutation_man_title')?></label>
					<?php echo form_radio('salutation', 'female', FALSE, 'id="salutation"')?> <label for="saluatation"><?php echo lang('stoepje_winner_salutation_female_title')?></label>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_first_name_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('first_name', '', 'id="first_name"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_last_name_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('last_name', '', 'id="last_name"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_postcode_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('postcode', '', 'id="postcode"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_email_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('email', '', 'id="email"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_code_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('code', '', 'id="code"')?>
				</div>
				<div class="clear"></div>
			</div>
			<!-- 
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label>&nbsp;</label>
				</div>
				
				<div class="stoepje-voucher-form-item-right">
					<?php
					$vals = array(
					    'word' => $captchaWord,
					    'img_path' => 'uploads/default/captcha/',
					    'img_url' => site_url().'uploads/default/captcha/',
					    'font_path' => 'uploads/default/captcha/fonts/TimesNewRomanBold.ttf',
					    'img_width' => '150',
					    'img_height' => '30',
					    'expiration' => 7200
					    );
					$timeLIMIT = 720;
					$captcha = array( 'captcha_exprise_time'=>time() + $timeLIMIT , 'captcha_content'=>$captchaWord );
					$ci = &get_instance();
					$ci->session->set_userdata($captcha);
					$cap = create_captcha($vals);
					?>
					<div id="captcha-content"><?php echo $cap['image'];?></div><div id="refresh-captcha"><img src="<?php site_url()?>medias/images/refresh-bt.png"/></div>
					<div class="clear"></div>
					<?php echo form_input('captcha', '', 'id="captcha"')?>
					
				</div>
				 
				<div class="clear"></div>
			</div>
			-->
			<div class="stoepje-voucher-form-item">
				<div class="accept-content">
				<?php echo form_checkbox('accept', 1, FALSE, 'id="accept"')?><label id="accept-label" for="accept"><?php echo lang('stoepje_winner_accept_title')?></label>
				<!-- <p><?php echo lang('stoepje_winner_required_marker')?></p> -->	
				</div>
				<div class="submit-content">
				<?php echo form_submit('submit', '', 'id="submit"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="fb-like" data-href="https://www.facebook.com/stoepje" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" data-font="arial"></div>
				<a href="https://twitter.com/tstoepje" class="twitter-follow-button" data-show-count="false">Follow @tstoepje</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
			</div>			
		</div>
	</div>
	<div class="clear"></div>
</div>
<div class="flight-content">
	<img src="{{ url:site }}/medias/images/flight.png"/>
</div>
<div id="content-middle">
	<div class="content-bottom-box1">
		<img src="{{ url:site }}/medias/images/content-middle-1.png"/>	
	</div>
	<div class="content-bottom-box2">
		<img src="{{ url:site }}/medias/images/content-middle-2.png"/>
	</div>
	<div class="content-bottom-box3">
		<img src="{{ url:site }}/medias/images/content-middle-3.png"/>
	</div>
	<div class="clear"></div>
</div>
<div id="separator">
	<img src="{{ url:site }}/medias/images/separator.png"/>
</div>
<div id="content-bottom">
	<div class="content-bottom-box1">
		<?php
		if($pageChunksBottomBox1){
			echo $pageChunksBottomBox1[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box1_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="content-bottom-box2">
		<?php
		if($pageChunksBottomBox2){
			echo $pageChunksBottomBox2[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box2_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="content-bottom-box3">
		<img src="{{ url:site }}/medias/images/content-bottom-3.png"/>
	</div>
	<div class="clear"></div>
</div>
